import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index'
import App from './App.vue'
import { createPinia } from 'pinia'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 导入 路由守卫
import './router/permission.js'
import dispatchEventStroage from '@/utils/watchLocalStorage.js'

const app = createApp(App)
const pinia = createPinia()
app.use(ElementPlus, {
    locale: zhCn,
  })
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
app.use(dispatchEventStroage);
